<!DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" href="../../plugins/layui/css/layui.css"/>
    <link rel="stylesheet" href="../../css/normalize.css"/>
    <link rel="stylesheet" href="../../css/fa.css"/>
    <link rel="stylesheet" href="../../css/icon.css"/>
    <link rel="stylesheet" href="../../css/ares_animate.min.css"/>
    <link rel="stylesheet" href="../../css/ares_hover_variant.min.css"/>
    <link rel="stylesheet" href="../../css/ares_reboot.css"/>
    <link rel="stylesheet" href="../../css/app.min.css"/>
    <link rel="stylesheet" href="../../css/iframe.css"/>

</head>

<body class="ares-p">
<!--<blockquote class="layui-elem-quote">患者基本信息</blockquote>

<div class="ares-row">
    <div class="ares-col-6">
        <span>患者姓名: </span>
        <span id="patient-name"></span>
    </div>
    <div class="ares-col-6">
        <span>患者性别: </span>
        <span id="patient-sex"></span>
    </div>
    <div class="ares-col-6">
        <span>出生日期: </span>
        <span id="birthday"></span>
    </div>
    <div class="ares-col-6">
        <span>患者编号: </span>
        <span id="identity"></span>
    </div>
    <div class="ares-col-6">
        <span>医保类型: </span>
        <span id="insurance-type"></span>
    </div>
</div>-->

<!--<blockquote class="layui-elem-quote">会诊信息</blockquote>-->

<div class="ares-row">
    <div class="ares-col-6">
        <span>病患类型: </span>
        <span id="patient-classify"></span>
    </div>
    <div class="ares-col-6">
        <span>床旁治疗: </span>
        <span id="bed-side"></span>
    </div>
    <div class="ares-col-6">
        <span>病区/床位号: </span>
        <span id="area-bed"></span>
    </div>
    <div class="ares-col-6">
        <span>治疗组: </span>
        <span id="group"></span>
    </div>
    <div class="ares-col-6">
        <span>会诊科室: </span>
        <span id="division"></span>
    </div>
    <div class="ares-col-6">
        <span>主诉: </span>
        <span id="chief"></span>
    </div>
</div>


<script type="text/javascript" src="../../plugins/layui/layui.js"></script>
<script type="text/javascript" src="../../aresExtends/config/layuiConfig.js"></script>
<script>
    layui.use(['filters', 'dateFilters', 'consultationServices', 'qs'], function (filters, dateFilters, consultationServices, qs) {
        var queryParams = qs.parse(location.search.substr(1));

        init();

        /**
         * @author: ares
         * @date: 2021/3/17 9:52
         * @description: 获取会诊详情
         */
        function getDetail() {
            consultationServices.getConsultationDetailService(queryParams.id).then(function (res) {
                renderConsultationInfo(res.data);
            })
        }

        /**
         * @author: ares
         * @date: 2021/3/17 9:53
         * @description: 显示会诊信息
         * @param {object}info
         */
        function renderConsultationInfo(info) {
           /* $("#patient-name").text(info.emr.patient.name);
            $("#patient-sex").text(filters.sexFormat(info.emr.patient.sex));
            $("#birthday").text(dateFilters.dateFormat(info.emr.patient.birthday));
            $("#identity").text(info.emr.number);
            $("#insurance-type").text(filters.insuranceTypeFormat(info.emr.insurance_type));*/
            $("#patient-classify").text(filters.patientClassifyFormat(info.patientClassfify));
            $("#bed-side").text(info.classify ? '是' : '否');
            $("#area-bed").text(info.wardBedNumber);
            $("#group").text(info.therapistGroupName);
            $("#division").text(info.divisionName);
            $("#chief").text(info.mainNarrate);
        }

        /**
         * @author: ares
         * @date: 2021/3/17 9:53
         * @description: 初始化
         */
        function init() {
            getDetail();
        }
    })
</script>

</body>
</html>



